<script setup>
import { onMounted, ref } from 'vue';
import $bus from '../../utils/bus'
import TradeSale from './tradeSale.vue'
import TradeStock from './tradeStock.vue'
//---------------------------------------------------------------------获取标题事件---------------------------------------------------------------------
const activeName = ref('tradeSale')
const titleData = ref({
  titleFir : '贸易数据',
  titleSec: '报表数据'
})
onMounted(()=>{
  $bus.emit('title-info',titleData.value)
})
</script>

<template>
 <el-tabs v-model="activeName" class="demo-tabs">

    <el-tab-pane label="客户商品销售" :lazy="true" name="tradeSale">
      <TradeSale></TradeSale>
    </el-tab-pane>

    <el-tab-pane label="商品库存" :lazy="true" name="tradeStock">
      <TradeStock></TradeStock>
    </el-tab-pane>

  </el-tabs>
</template>

<style scoped lang="scss">

</style>
